package com.quentinbeauperin.twitbird
{
	import flash.display.Bitmap;
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.net.URLRequest;
	
	import mx.core.BitmapAsset;
	
	public class Bird extends BirdAsset
	{
		[Embed("images/evilTwitbird.png")]
		private var CaracterBis:Class;
			
		private var _evil:Boolean;
		
		public function Bird(id:int):void
		{
			super();
			//coucou
			
			evil = false;
		}
		
		public function get evil():Boolean {
			return _evil;
		}
		
		public function set evil(value:Boolean):void {
			_evil = value;
			
			evilWing.visible = evilBird.visible = _evil;
			normalWing.visible = normalBird.visible = ! _evil;
		}
	}
}